<%@ page contentType="text/html;charset=GBK" %>
<%@ page import="java.util.*" %>
<%@ page import="com.ionglobal.lib.*" %>
<%@ page import="com.ionglobal.misc.*" %>
<%@ page import="com.gzgi.weqs.refquote.*" %>

<%@ include file="/include/inc_ui.jsp" %>
<%@ include file="/include/init_include.jsp" %>
<script>
var r = new Array();
<%
String speStr = Request.getString("speStr");
if(speStr!=null && speStr.endsWith(","))
		speStr = speStr.substring(0,speStr.length()-1);
MaterialPriceApp app = new MaterialPriceApp();
if(speStr!=null && speStr.length()>0){
	Map map = app.getLastValue(dbi,speStr);
	String[] spec = speStr.split(",");
	for(int i=0;i<spec.length;i++){
		String lastValue = "0";
		if(map.containsKey(spec[i].trim()))
			lastValue = (String)map.get(spec[i].trim());
		out.println("r[r.length]=new Array('"+spec[i].trim()+"',"+lastValue+")");
	}
}
%>
	if(r.length>0){
		window.returnValue = r;
		self.close();
	}
</script>
<%@ include file="/include/init_free.jsp" %>